package com.gadgets.framework.common.dto;

import java.util.ArrayList;
import java.util.List;

/**
 * @author UncleXiu
 * @version V1.0.0
 * @data 2020-09-17
 *
 */
public class BaseQueryDTO extends BaseDTO {

    /**
     * 排序字段
     */
    private List<String> orderColumn = new ArrayList<>();

    public void addDesc(String columnName){
        orderColumn.add(columnName+" DESC");
    }

    public void addAsc(String columnName){
        orderColumn.add(columnName+" ASC");
    }

    public List<String> getOrderColumn() {
        return orderColumn;
    }

    public void setOrderColumn(List<String> orderColumn) {
        this.orderColumn = orderColumn;
    }

}
